<template>
  <div>
    <h1 v-text="msg" ref="title"></h1>
    <button @click="showDOM">点我输出元素</button>
    <School ref="sch"/>
  </div>
</template>

<script>
import School from './components/School.vue'
export default {
  name:'App',
  components:{School},
  data(){
    return{
      msg:'欢饮'
    }
  },
  methods:{
    showDOM(){
      console.log(this.$refs.sch)
    }
  }
}
</script>

<style>

</style>